import { http } from '@idmy/core'
import { toRaw } from 'vue'
import { cloneDeep } from 'lodash-es'

export function createOrUpdateDict(model: any) {
  if (model.id) {
    return http.post('/api/sys/dict/update', model, { appKey: 'sys' })
  } else {
    return http.post('/api/sys/dict/create', model, { appKey: 'sys' })
  }
}
